import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from  'element-ui'; 
import  'element-ui/lib/theme-chalk/index.css';
import 'font-awesome/css/font-awesome.min.css'
import auth from "@/utils/auth"

Vue.config.productionTip = false;
Vue.use(ElementUI);
Vue.use(auth);

Vue.prototype.msgSuccess = function (msg) {
  this.$message({ showClose: true, message: msg, type: "success" });
}

Vue.prototype.msgError = function (msg) {
  this.$message({ showClose: true, message: msg, type: "error" });
}

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
